﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RBOSS.Business.Products;
using System.Collections;

namespace RBOSS.WebUI
{
    public partial class VendorProductsUI : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var email = (string)Session["email"];
           
            VendorProducts objVendorProduct = new VendorProducts();
            var lstVendorProducts = objVendorProduct.getvendorproduct(email);
            gvProductList.DataSource = lstVendorProducts;
            gvProductList.DataBind();
       }

        

        protected void btnAddProduct_Click(object sender, EventArgs e)
        {
            Response.Redirect("ProductUI.aspx");
        }

        protected void gvProductList_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            gvProductList.PageIndex = e.NewPageIndex;
            gvProductList.DataBind();
        }

    }
}